<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ include file="../../../commons/taglibs.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>列表</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<script type="text/javascript">
$(function(){
	//初始化操作默认不显示人员关联项

	$('#user_id').combobox({   
	    url:'<%=path %>/busEmploee/findAll',
	   // required:true,
	    valueField:'id',   
	    textField:'name',
	    onLoadSuccess : function(){  
	        var val = $(this).combobox('getData');  
            for (var item in val[0]) {  
                if (item == 'id') {  
                    $(this).combobox('select', val[0][item]);  
                }  
            }  
        },
        onSelect:function(record){ 
        	//	alert(record.name)
        	$("#userName").val(record.name)
        	
        }
	});
})

</script>
</head>
<body>
	<div id="tab_bd1">
		<div class="title">
			<div class="left">垫付信息</div>
		</div>
		<div class="frame">
		<form id="saveForm" name="saveForm" method="post"  >
			<table width="100%" border="0" cellpadding="1" cellspacing="1"
				bordercolor="#CCCCCC" bgcolor="#CCCCCC" align="center">
				<input type="hidden" name="preCost.id" value="${preCost.id }" />
				<tr >
					<td width="15%" class="lbg">垫付金额：</td>
					<td width="35%">
					<input type="text" class="easyui-validatebox"
						id="fee_num" name="preCost.fee_num"
						value="${preCost.fee_num}"><font color="red" size="4">&nbsp;&nbsp;*&nbsp;</font>
					</td>
				</tr>
				<tr>
					<td width="15%" class="lbg">收款人：</td>
					<td width="35%"><input type="text" class="easyui-validatebox"
						 id="user_id" name="preCost.user_id"
						value="${preCost.feeType}"><font color="red" size="4">&nbsp;&nbsp;*&nbsp;</font>
						<input type="hidden" name="preCost.user_name" id="userName" />
					</td>
				</tr>
				<tr>
					<td colspan="4" align="center">
					<a href="javascript:saveModel('<%=path %>/preCost/createOrUpdate')" class="easyui-linkbutton pad" iconCls="icon-ok"/>保存</a>
						<a href="javascript:history.go(-1)" class="easyui-linkbutton pad" iconCls="icon-cancel">返回</a></td>
				</tr>
			</table>
			</form>
		</div>
	</div>
</body>
</html>